// 调用评论接口
import request from '@/utils/request'

export default {
  // 分页查询评论信息
  getPageList(page, limit, courseId) {
    return request({
      url: `/eduservice/eduComment/getCommentPage/${page}/${limit}`,
      method: 'get',
      params: {courseId}
    })
  },
  // 添加评论
  addComment(eduComment) {
    return request({
      url: `/eduservice/eduComment/saveCommentInfo`,
      method: 'post',
      data: eduComment
    })
  }
}